package org.uim.cricket.entities.match;

public class MatchResult {

	private String wonTeam = null;
	private int margin = -1;
	private int remainingBalls = -1;
	private boolean byDuckworthLewis = false;
	private boolean byInnings = false;
	private ResultWonType wonType = ResultWonType.UNKNOWN;
	private ResultType resultType = null;

	public void setResultType(ResultType resultType) {
		this.resultType = resultType;
	}

	public ResultType getResultType() {
		return resultType;
	}

	public String getWonTeam() {
		return wonTeam;
	}

	public void setWonTeam(String wonTeam) {
		this.wonTeam = wonTeam;
	}

	public int getMargin() {
		return margin;
	}

	public void setMargin(int margin) {
		this.margin = margin;
	}

	public int getRemainingBalls() {
		return remainingBalls;
	}

	public void setRemainingBalls(int remainingBalls) {
		this.remainingBalls = remainingBalls;
	}

	public boolean isByDuckworthLewis() {
		return byDuckworthLewis;
	}

	public void setByDuckworthLewis(boolean byDuckworthLewis) {
		this.byDuckworthLewis = byDuckworthLewis;
	}

	public void setWonType(ResultWonType wonType) {
		this.wonType = wonType;
	}

	public ResultWonType getWonType() {
		return wonType;
	}

	public void setByInnings(boolean byInnings) {
        this.byInnings = byInnings;
    }
	
	public boolean isByInnings() {
        return byInnings;
    }
	
}
